import 'package:flutter/material.dart';
import './pages/home.dart';

/// 入口函数
void main() => runApp(ScanApp());

/// 应用程序首页
class ScanApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Flutter 扫描二维码和条形码',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: HomePage(),
    );
  }
}